/**
 * @file define.h
 * @brief
 * @author h0rr0rr_drag0n <h0rr0rr_drag0n@vindekapets.ru
 * @date 01 Июль 2010 21:17:11
 *
 * Some useful defines
 */

#ifndef _DEFINE_H_
#define _DEFINE_H_

#define FIFO_PATH "/tmp/osd_server.fifo"
#define FIFO_PERM S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH
#define STRLEN 1024
#define DISPLAY "DISPLAY=:0"
#define XAUTHORITY "XAUTHORITY=/home/drag0n/.Xauthority"
#define OSD_CMD "osd_cat -b percentage -o 22 -A center -c '#42dd42' -d 2 -P"

/* init.c */
int osd_slider_init(int daemonize);
void emerg_exit();

/* abort.c */
int check_sigabrt();

/* pipes.c */
int pipe_open(char * ppath);
int pipe_getchar(int readffd);

/* child.c */
int check_sigchld();

/* exec.c */
int run_osdcat(char * percentage);

#endif /* _DEFINE_H_ */

